<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | 路由规则的定义，简化url长度  优化访问体验
// +----------------------------------------------------------------------


return [
    '__pattern__' => [
        'name' => '\w+',
    ],
    '[hello]'     => [
        ':id'   => ['index/hello', ['method' => 'get'], ['id' => '\d+']],
        ':name' => ['index/hello', ['method' => 'post']],
    ],
	'xxoo/[:name]' => 'admin/index/xxoo' ,//xxoo 模块的访问示例 name参数带中括号 表示 参数可选，不带则必须
	//'tptest/[:sex]' => 'admin/index/tptest'
	'[tptest]'=>[
		':id'=>['admin/index/tptest',['method' => 'get']],
		':namey' => ['admin/index/tptest', ['method' => 'get']],
	]
];
